

<div class="list-product">
    <div class="list-category">
        <img src="images/blog-samsung-galaxy-tab-banner.jpg" height="128px" style="padding-bottom: 5px;" alt="" />     
         
        <p class="title-list-pro">
        Các sản phẩm của nhà cung cấp: "<?php echo $model->full_name; ?>"
        </p>
    <?php
    $this->widget('zii.widgets.CListView', array(
        'dataProvider' => $dataProvider,
        'summaryText' => ' ',
        'itemView' => '_viewProduct',
    ));
    ?>
    </div>
    
</div>
<div class="left-main">
    <script type="text/javascript">
        $(document).ready(function(){
            $.ajaxSetup ({
                cache: false
            });
            if('Tìm kiếm ...'==$(".search-bg input:text").val()) {
                $(".search-bg input:text").click(function(){
                    $(".search-bg input:text").val('');
                });
            }
            var ajax_load = '<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/load.gif" alt="" />';
            //	load() functions
            var loadUrl = "<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=shop/shop/search";
            $(".search-bg input:text").keyup(function () {
                keySearch = $(".search-bg input:text").val();
                if(('Tìm kiếm ...'!=keySearch)&&(''!=keySearch)) {
                $(".list-product").load(loadUrl +" #result-search","case="+keySearch);
                                   }
            }).keyup();
           
            //var keySearch = $('.search-bg input:text').val();
            
        });

            </script>
    <div class="search-product radius-8px">
        <div class="search-bg radius-8px">
            
            <?php
           // echo CHtml::beginForm('index.php?r=shop/shop/search', 'GET');
            $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
                'name' => 'case',
                'value' => 'Tìm kiếm ...',
                'sourceUrl' => $this->createUrl('shop/searchAuto'),
                // additional javascript options for the autocomplete plugin
                'options' => array(
                    'showAnim' => 'fold',
                ),
            ));
            echo CHtml::imageButton('images/06-magnifying-glass.png', array('class' => 'search-pro'));
           // echo CHtml::endForm();
            ?>

        </div>
        <p class="desc">Type keyword to search, <i>eg : computer for game, house ...</i></p>
    </div>
    
    
    <div class="list-category">

        <?php 
                $this->widget('ListCategoriesWidget');
                $this->widget('SuppliersWidget');
                $this->widget('TransportersWidget');
            ?>
       
            
    </div>
</div>


